<!--
  Generated template for the MessagePage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>
      <p text-center>消息</p>
    </ion-title>
  </ion-navbar>

</ion-header>


<ion-content>
  <ion-item>
    <ion-searchbar placeholder="搜索" (ionInput)="getItems($event)"></ion-searchbar>
    <!-- <ion-icon name="ios-redo" class="goSearch"></ion-icon> -->
  </ion-item>
  <ion-list>
    <ion-card class="card" (click)="chatDetail(item.id,item.name)" *ngFor="let item of groupList" id="{{item.id}}">
      <ion-item>
        <ion-avatar item-start class="user_photo">
          <img src="./assets/imgs/group.png">
        </ion-avatar>
        <h2 class="clearfix user_mes">
          <span class="puff_left user_name">{{item.name}}</span> <span class="puff_right dis_time"></span>
        </h2>
        <ion-badge item-end *ngIf="item.getnum != 0">{{item.getnum}}</ion-badge>
        <p class="purposeDescription">{{item.aim}}</p>
      </ion-item>
    </ion-card>
  </ion-list>
</ion-content>
